﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    struct MyInfo //定义结构
    {
        public string myName;
        public string myAge;
        public string myQQ;
        public string myAdd;
        public string myPostID;
    }    
    class Program
    {
        static void Main(string[] args)
        {
            MyInfo myinfo;//声明结构类型变量myinfo
            myinfo.myName = "余振";
            myinfo.myAge="18";
            myinfo.myQQ = "458424702";
            myinfo.myAdd = "吉林省长春市";
            myinfo.myPostID = "130031";
            ///使用前必须给其每一个变量都赋值，不然会报错
            Console.WriteLine("姓名={0}\n年龄={1}岁\n\0Q\0Q={2}\n地址={3}\n邮编={4}\n",myinfo.myName,myinfo.myAge,myinfo.myQQ,myinfo.myAdd,myinfo.myPostID);
            Console.ReadLine();
        }
    }
}
